﻿<controls:ChildWindow x:Class="ICIA.ARojas.Visual.Destino.AsignarDestinoModal"
            xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
           xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
           xmlns:controls="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls"
                      xmlns:Didsoft_Silverlight_Controls="clr-namespace:Didsoft.Silverlight.Controls;assembly=Didsoft.Silverlight.Controls" 
             xmlns:Didsoft_Silverlight_Controls_Data="clr-namespace:Didsoft.Silverlight.Controls.Data;assembly=Didsoft.Silverlight.Controls.Data"
             
              xmlns:toolkit="http://schemas.microsoft.com/winfx/2006/xaml/presentation/toolkit" xmlns:sdk="http://schemas.microsoft.com/winfx/2006/xaml/presentation/sdk"
           Width="599" Height="406" 
           Title="DestinoModal">
    <Grid x:Name="LayoutRoot" >
      
        <Didsoft_Silverlight_Controls:FormHeader DescriptionText="Datos Personales" TitleText="Destinos" Margin="0,0,0,0">
            <toolkit:BusyIndicator Name="busyIndicator1" BusyContent="Espere mientras procesamos su peticion" IsBusy="{Binding IsBusy,Mode=TwoWay}">
                <Grid>
                    <sdk:TreeView  x:Name="myarbol"  Margin="6,6,332,19" Width="243" Height="291" />
                    <Button Content="Aceptar" Height="43" HorizontalAlignment="Left" Margin="446,267,0,0" Name="button1" VerticalAlignment="Top" Width="117" 
                            Command="{Binding CmdAsignar,Mode=TwoWay}"
                            CommandParameter="{Binding ElementName=myarbol, Path=SelectedItem, Mode=TwoWay}" />
                    <TextBlock Height="23" HorizontalAlignment="Left" Margin="265,59,0,0" Name="textBlock1" Text="Codigo:" VerticalAlignment="Top" />
                    <TextBox Height="23" Text="{Binding SelectedItem.Codigo,Mode=TwoWay}" HorizontalAlignment="Left" Margin="379,59,0,0" Name="textBox1" VerticalAlignment="Top" Width="184" IsEnabled="False" />
                    <TextBlock Height="23" HorizontalAlignment="Left" Margin="265,88,0,0" Name="textBlock2" Text="Nombre :" VerticalAlignment="Top" />
                    <TextBox Height="23" HorizontalAlignment="Left" Margin="379,88,0,0" Name="textBox2" Text="{Binding SelectedItem.Nombre, Mode=TwoWay}" VerticalAlignment="Top" Width="184" IsEnabled="False" />
                    <TextBlock Height="23" HorizontalAlignment="Left" Margin="265,117,0,0" Name="textBlock3" Text="Direccion :" VerticalAlignment="Top" />
                    <TextBox Height="23" HorizontalAlignment="Left" Margin="379,117,0,0" Name="textBox3" Text="{Binding SelectedItem.Ubicacion, Mode=TwoWay}" VerticalAlignment="Top" Width="184" IsEnabled="False" />
                    <TextBlock Height="23" HorizontalAlignment="Left" Margin="265,20,0,0" Name="textBlock8" Text="Gestion:" VerticalAlignment="Top" FontSize="18" />
                    <TextBox Height="45" HorizontalAlignment="Left" IsReadOnly="True" Margin="379,8,0,0" Name="textBox8" Text="{Binding Gestion, Mode=TwoWay}" VerticalAlignment="Top" Width="96" FontSize="26" FontWeight="Bold" FontStyle="Normal" />
                    <TextBlock Height="23" HorizontalAlignment="Left" Margin="265,146,0,0" Name="textBlock4" Text="Seleccione el Cargo con el cual está asignando destino :" VerticalAlignment="Top" />
                    <ComboBox Height="29" HorizontalAlignment="Left" ItemsSource="{Binding Cargos,Mode=TwoWay}" SelectedItem="{Binding Cargo,Mode=TwoWay}" Margin="379,175,0,0" Name="comboBox1" VerticalAlignment="Top" Width="184" />
                </Grid>
            </toolkit:BusyIndicator>
        </Didsoft_Silverlight_Controls:FormHeader>
    </Grid>
</controls:ChildWindow>